#! /bin/sh
cd /usr/local/src
wget http://nginx.org/download/nginx-1.10.1.tar.gz
echo 'download success'
tar -zxvf ./nginx*
echo 'unzip success'
yum install pcre -y
echo 'pcre install success'
yum install pcre-devel -y
echo 'pcre-devel install success'
yum install gzip -y
echo 'gzip install success'
yum install -y zlib-devel
echo 'zlib-devel install success'
mkdir -p /usr/local/nginx
echo 'create dir /usr/local/nginx success'
cd ./nginx*
./configure --prefix=/usr/local/nginx
echo 'configure success'
make
make install
echo 'complete !!!'